package com.newtouch.xcd.cms.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dongyuefeng
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("5k_distribution")
@ApiModel(value="Distribution对象", description="")
public class Distribution implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "distribution_id", type = IdType.AUTO)
    private Integer distributionId;

    @ApiModelProperty(value = "分配总金额")
    @TableField("allocation")
    private BigDecimal allocation;

    @ApiModelProperty(value = "收益总金额")
    @TableField("income_money")
    private BigDecimal incomeMoney;

    @ApiModelProperty(value = "收益权期限")
    @TableField("xt_liyi")
    private String xtLiyi;

    @ApiModelProperty(value = "其他分配项目")
    @TableField("frequency")
    private String frequency;

    @ApiModelProperty(value = "分配标准")
    @TableField("standard")
    private String standard;

    @ApiModelProperty(value = "分配时间")
    @TableField("time")
    private Integer time;

    @ApiModelProperty(value = "分配标准")
    @TableField("mode")
    private String mode;

    @ApiModelProperty(value = "分配类型：1、生育奖励金  2、教育金")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "分配程序")
    @TableField("allocator")
    private String allocator;

    @ApiModelProperty(value = "创建者ID")
    @TableField("creator_role_id")
    private Integer creatorRoleId;

    @ApiModelProperty(value = "所有者岗位")
    @TableField("owner_role_id")
    private Integer ownerRoleId;

    @ApiModelProperty(value = "建立时间")
    @TableField("create_time")
    private Integer createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Integer updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "利益分配者ID")
    @TableField("contacts_id")
    private Integer contactsId;

    @ApiModelProperty(value = "受益人类别")
    @TableField("contacts_type")
    private Integer contactsType;

    @ApiModelProperty(value = "受益人")
    @TableField("contacts_name")
    private String contactsName;

    @ApiModelProperty(value = "与委托人关系")
    @TableField("matter")
    private String matter;

    @ApiModelProperty(value = "资产分配")
    @TableField("benefit_id")
    private Integer benefitId;

    @ApiModelProperty(value = "支付频率：1每年  2每月  3每周  4仅一次  5每季度")
    @TableField("tx_type")
    private Integer txType;

    @ApiModelProperty(value = "具体提醒日期")
    @TableField("tx_time")
    private String txTime;

    @ApiModelProperty(value = "账户名")
    @TableField("account_name")
    private String accountName;

    @ApiModelProperty(value = "开户行")
    @TableField("bank_name")
    private String bankName;

    @ApiModelProperty(value = "银行账号")
    @TableField("bank_number")
    private String bankNumber;

    @ApiModelProperty(value = "分配程序")
    @TableField("fpchengxu")
    private String fpchengxu;

    @ApiModelProperty(value = "支付条件")
    @TableField("pay_qualification")
    private String payQualification;

    @ApiModelProperty(value = "支付方式：1固定支付   2非固定支付   3清算支付")
    @TableField("pay_style")
    private Integer payStyle;

    @ApiModelProperty(value = "支付金额方式：1按固定金额   2按固定收益率    3按付息支付")
    @TableField("pay_money_style")
    private Integer payMoneyStyle;

    @ApiModelProperty(value = "首次支付日期")
    @TableField("start_time")
    private Integer startTime;

    @ApiModelProperty(value = "分配项目")
    @TableField("frequency_type")
    private Integer frequencyType;

    @ApiModelProperty(value = "分配结束时间")
    @TableField("end_time")
    private Integer endTime;

    @ApiModelProperty(value = "排序id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "临时唯一码")
    @TableField("sj_code")
    private String sjCode;


}
